import java.util.Arrays;

public class fourthQuestion {
    public static void main(String[] args) {
           int nums[][] =new int[3][5];
           String  name[]={"Java","JSP","CoreJava","MySQL","HTML5"};
           int sum=0;
           int score[] =new int[3];
        for (int i = 0; i <3; i++) {
            System.out.print ("第"+(i+1)+"同学：");
            sum=0;
            for (int j = 0,z=0; j <5&&z<5 ; j++,z++) {
                int N=(int)(Math.random()*100);
                nums[i][j]=N;
                 sum+=nums[i][j];
                System.out.print(name[z]+"成绩："+nums[i][j]+"\t ");
            }
            score[i]=sum;
             System.out.println("平均分为："+sum/5);
        }
        System.out.println(Arrays.toString(score));

    }
}
